package appapi.dao;

import appapi.Request.EquipmentmaintenanPageReq;import appapi.Request.InspectionPageReq;
import appapi.Request.record.InspectionReq;
import appapi.Vo.MaintenanPageVo;
import appapi.entity.Zhongjiao.EquipmentmaintenanDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;import java.util.Map;

/**
 * @author djq
 * @date 2023/5/25 9:59
 * @description:
 */

@Mapper
public interface EquipmentmaintenanMapper {
    int deleteByPrimaryKey(Long mainId);

    int insert(EquipmentmaintenanDto record);

    int insertSelective(EquipmentmaintenanDto record);

    EquipmentmaintenanDto selectByPrimaryKey(Long mainId);

    int updateByPrimaryKeySelective(EquipmentmaintenanDto record);

    int updateByPrimaryKey(EquipmentmaintenanDto record);

    List<Map<String, Object>> selectPageList(EquipmentmaintenanPageReq equipmentmaintenanPageReq);

    List<MaintenanPageVo> selectMaintenanPage(InspectionPageReq dto);

    List<MaintenanPageVo> querytList(InspectionReq req);

    List<Map<String, Object>> selectMaintenanList(Long equipId);

    int deleteBatch(@Param("mainIds") List<Long> mainIds);
}